<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link href="css/login.css" rel="stylesheet"/>
    <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
    <script src="js/login.js"></script>
    <title>用户协议及隐私设置</title>
    <style>
        .back, span{
            background-color: #7F9EBA;
        }
        #head{
            margin-bottom: 3rem;
        }
        .back{
            padding-top: 1.5rem;
        }
        /*#protocol{*/
            /*font-color: #9CB2C3;*/
        /*}*/
    </style>
</head>
<body>
<div>
    <div id="head">
        <img class="back" src="images/back2.png" alt="">
        <span></span>
    </div>
    <div id="content">
        <div id="protocol">

        </div>
        <div id="button">
            <button class="login">已阅读</button>
        </div>

    </div>

</div>

<script>
    $(function () {
        $.ajax({
            type: 'POST',
            url:`${localStorage.top}api/index/policy`,
            success:function (data) {
                console.log(data);
              $("#protocol").html(data.data.content);
              $("#head span").html(data.data.title);
            }
        });

        $(".back").click(function(){
            $(window).attr('location',"register_nicknameSet.html");
        });


        $(".login").click(function(){
            $(window).attr('location',"register_nicknameSet.html");
        });
    })
</script>
</body>
</html>